summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-21 06:13:06 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:55 +0200
commit62ffaa730fabd2101947dd28e50fae6d03162aa4 (patch)
treee511af5c879f08517715d607f9638bd66ddd108e
parentsettings,translation: Fix time zone enum (diff)
downloadyuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar
yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar.gz
yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar.bz2
yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar.lz
yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar.xz
yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.tar.zst
yuzu-62ffaa730fabd2101947dd28e50fae6d03162aa4.zip
-rw-r--r--src/yuzu/configuration/shared_translation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/yuzu/configuration/shared_translation.cpp b/src/yuzu/configuration/shared_translation.cpp
index a75574530..a1030efb0 100644
--- a/src/yuzu/configuration/shared_translation.cpp
+++ b/src/yuzu/configuration/shared_translation.cpp
@@ -170,7 +170,9 @@ std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent) {
std::unique_ptr<ComboboxTranslationMap> ComboboxEnumeration(QWidget* parent) {
std::unique_ptr<ComboboxTranslationMap> translations =
std::make_unique<ComboboxTranslationMap>();
- const auto& tr = [&](const char* text) { return parent->tr(text); };
+ const auto& tr = [&](const char* text, const char* context = "") {
+ return parent->tr(text, context);
+ };
#define PAIR(ENUM, VALUE, TRANSLATION) \
{ static_cast<u32>(Settings::ENUM::VALUE), tr(TRANSLATION) }